// 返回迭代器对象
function*generator(){
	yield 1;
	yield 2;
	yield 3;
	return 4; // 迭代器终止
}

var myGenerator = new generator();